filechooserbutton: Emit 'selection-changed' when changing the selection programmatically
authorFederico Mena Quintero <federico@gnome.org>
Tue, 12 Mar 2013 03:54:22 +0000 (21:54 -0600)
committerFederico Mena Quintero <federico@gnome.org>
Tue, 12 Mar 2013 20:31:47 +0000 (14:31 -0600)
commitfa4878979e0a72890ca577a210ccd7cf6291dbf0
tree8fb83e2ab9df097c970cdd581517728f3de4b536
parenta8c4d0935b17e306211fcb5ef503ed17cf483608
filechooserbutton: Emit 'selection-changed' when changing the selection programmatically

We only emitted that signal when the selection changed through the underlying GtkFileChooserDialog.

To do this when the dialog is not active and the selection is changed by the calling program
(instead of by the user), we need to wait until the GtkFileChooserButton's UI has been updated
via an async callback from GIO.  So, we keep track of whether an entry point into the
button's API caused a programmatic change in the selection.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
gtk/gtkfilechooserbutton.c